package com.wfk.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 平台用户表
 * </p>
 *
 * @since 2018-12-05
 */
@TableName("t_sys_user")
public class SysUser implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableField(exist=false)
	private Date datemin ;
	
	@TableField(exist=false)
	private Date datemax ; 
	
	@TableField(exist=false)
	private SysRole sysRole ;
	
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 登录
	 */
	private String login;

	/**
	 * 密码
	 */
	private String password;

	/**
	 * 名称
	 */
	private String name;

	/**
	 * 联系电话
	 */
	private String phone;

	/**
	 * 创建时间
	 */
	private Date createtime;

	private Integer roleid;

	/**
	 * 头像
	 */
	private String headurl;

	/**
	 * 0有效 -1无效
	 */
	private Integer status;

	/**
	 * 是否逻辑删除 0正常 -1删除
	 */
	@TableLogic
	private Integer isdel;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getRoleid() {
		return roleid;
	}

	public void setRoleid(Integer roleid) {
		this.roleid = roleid;
	}

	public String getHeadurl() {
		return headurl;
	}

	public void setHeadurl(String headurl) {
		this.headurl = headurl;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getIsdel() {
		return isdel;
	}

	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}

	public Date getDatemin() {
		return datemin;
	}

	public void setDatemin(Date datemin) {
		this.datemin = datemin;
	}

	public Date getDatemax() {
		return datemax;
	}

	public void setDatemax(Date datemax) {
		this.datemax = datemax;
	}

	public SysRole getSysRole() {
		return sysRole;
	}

	public void setSysRole(SysRole sysRole) {
		this.sysRole = sysRole;
	}

	@Override
	public String toString() {
		return "SysUser{" +
				"id=" + id +
				", login=" + login +
				", password=" + password +
				", name=" + name +
				", phone=" + phone +
				", createtime=" + createtime +
				", roleid=" + roleid +
				", headurl=" + headurl +
				", status=" + status +
				", isdel=" + isdel +
				"}";
	}
}
